SureCart\Models\Model D

Total Complexity 174
Dependencies 6
Dependents 13
Total lines 1,377
Lines of code 561
Logical lines of code 299
Comment lines 605
Methods 78
Properties 18

Methods 78

Method Rating Maintainability Complexity Lines of code
create()
A
49 8 31
toArray()
A
50 8 27
toObject()
A
50 8 27
update()
S
50 6 30
delete()
S
55 6 20
setAttributes()
S
55 6 18
save()
S
58 5 16
isDirty()
S
59 5 15
getDirty()
S
61 5 12
get()
S
59 4 15
paginate()
S
59 4 15
setCollection()
S
63 5 10
getAttribute()
S
62 4 12
isFillable()
S
63 4 10
find()
S
61 3 13
setAttribute()
S
61 3 12
refresh()
S
62 3 12
getCachedAttribute()
S
65 3 9
setAttributeCache()
S
65 3 9
isError()
S
75 3 3
originalIsNumericallyEquivalent()
S
70 3 5
first()
S
64 3 9
setRelation()
S
72 3 5
getOriginal()
S
70 3 6
prepareRequest()
S
65 3 8
only()
S
74 2 4
getRelationId()
S
74 2 4
fresh()
S
65 2 10
without()
S
74 2 4
__construct()
S
64 2 9
isGuarded()
S
74 2 4
getMutator()
S
65 2 8
bootModel()
S
69 2 7
fireModelEvent()
S
65 2 8
getCreatedByAttribute()
S
72 2 6
setPagination()
S
63 1 12
offsetUnset()
S
79 1 3
__unset()
S
81 1 3
hasAttribute()
S
79 1 3
boot()
S
89 1 2
jsonSerialize()
S
81 1 3
getCalledClassName()
S
68 1 7
__call()
S
78 1 3
syncOriginal()
S
77 1 4
filterMetaData()
S
82 1 3
getQuery()
S
82 1 3
offsetSet()
S
80 1 3
getCacheStatus()
S
82 1 3
__get()
S
80 1 3
getAttributes()
S
79 1 3
__isset()
S
80 1 3
__set()
S
80 1 3
offsetExists()
S
79 1 3
offsetGet()
S
80 1 3
registerModelEvent()
S
74 1 4
saved()
S
79 1 3
retrieved()
S
79 1 3
getMetadataAttribute()
S
79 1 3
getGuarded()
S
82 1 3
where()
S
75 1 4
with()
S
74 1 4
setMode()
S
77 1 4
getMode()
S
82 1 3
makeRequest()
S
78 1 3
setMetadataAttribute()
S
73 1 4
getObjectName()
S
82 1 3
resetAttributes()
S
77 1 4
saving()
S
79 1 3
fill()
S
80 1 3
deleted()
S
79 1 3
deleting()
S
79 1 3
queueSync()
S
78 1 3
updated()
S
79 1 3
updating()
S
79 1 3
created()
S
79 1 3
creating()
S
79 1 3
getFillable()
S
82 1 3
__callStatic()
S
78 1 3